package cn.kgc.springmvc.entity;

/**
 * @author: mosin
 * @version: v1.0  2022/10/18
 */
public class User {

    private Integer age;
    private Integer id;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        System.out.println("age的set方法被调用");
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", id=" + id +
                '}';
    }
}
